ADP\BaseVersion\Includes\External\WC\WcCartItemFacade D

Total Complexity 137
Dependencies 11
Dependents 20
Total lines 1,033
Lines of code 434
Logical lines of code 212
Comment lines 306
Methods 64
Properties 28

Methods 64

Method Rating Maintainability Complexity Lines of code
__construct()
C
40 25 47
generateCartId()
A
51 11 25
createCommonItem()
A
49 9 30
addAttribute()
S
59 5 16
createFreeItem()
S
51 4 26
sanitize()
S
52 4 24
createFromProduct()
S
49 3 33
removeAttribute()
S
62 4 11
getClearData()
S
59 1 16
getOurData()
S
59 1 16
setInitialCustomPrice()
S
78 2 3
isFreeItem()
S
78 2 3
setHistory()
S
74 2 5
setDiscounts()
S
74 2 5
getOriginalPrice()
S
78 2 3
getInitialCustomPrice()
S
78 2 3
getOriginalPriceWithoutTax()
S
78 2 3
getOriginalPriceTax()
S
78 2 3
getExactSubtotalTax()
S
74 2 4
setCurrency()
S
74 2 5
setFreeCartItemHash()
S
74 2 5
isImmutable()
S
78 2 3
wcGetCartItemDataHash()
S
69 2 6
unpackCurrencyObject()
S
69 2 6
createItem()
S
72 2 6
packCurrencyObject()
S
65 2 10
getCartItemData()
S
73 1 5
getCurrency()
S
82 1 3
getNewPrice()
S
82 1 3
isVisible()
S
82 1 3
setReplaceWithCoupon()
S
80 1 3
getReplaceWithCoupon()
S
80 1 3
setReplaceCouponCode()
S
80 1 3
getReplaceCouponCode()
S
82 1 3
getAssociatedGiftHash()
S
82 1 3
getProduct()
S
82 1 3
setAssociatedGiftHash()
S
80 1 3
getQty()
S
82 1 3
getData()
S
79 1 3
getFreeCartItemHash()
S
82 1 3
setSelectedFreeCartItem()
S
81 1 3
isSelectedFreeCartItem()
S
82 1 3
isAffected()
S
80 1 3
setNewPrice()
S
76 1 4
getKey()
S
82 1 3
setQty()
S
80 1 3
getDiscounts()
S
82 1 3
getOriginalKey()
S
82 1 3
isClone()
S
80 1 3
getSubtotal()
S
82 1 3
getSubtotalTax()
S
82 1 3
deleteThirdPartyData()
S
80 1 3
__clone()
S
81 1 3
setThirdPartyData()
S
80 1 3
getThirdPartyData()
S
82 1 3
setOriginalKey()
S
81 1 3
getVariation()
S
82 1 3
getVariationId()
S
82 1 3
setOriginalPriceWithoutTax()
S
79 1 3
getProductId()
S
82 1 3
setOriginalPrice()
S
79 1 3
setKey()
S
81 1 3
setOriginalPriceTax()
S
79 1 3
getHistory()
S
82 1 3